package me.ling.control;

import me.ling.entity.Order;
import me.ling.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @Autowired
    OrderService orderService;

    @GetMapping("/source")
    public String checkSource(Order order) {
        order.setSource("pc");
        orderService.orderService(order);
        return order.getSource();
    }
}
